public class DistanceMonitor {
	private int distance;

	public DistanceMonitor() {
		distance = 10;
	}

	public synchronized void setDistance(int distance) {
		this.distance = distance;
	}

	public synchronized int getDistance() {
		return distance;
	}
}
